﻿<navigation:Page xmlns:controls="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"  
                 x:Class="Membership.UI.Views.TestTreeView" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
                        xmlns:common="clr-namespace:System.Windows;assembly=System.Windows.Controls" 

           d:DesignWidth="640" d:DesignHeight="480"
           Title="TestTreeView Page">
    <Grid x:Name="LayoutRoot">
        <controls:TreeView x:Name="TreeOfLife" Margin="5">
            <controls:TreeView.ItemTemplate>
                <common:HierarchicalDataTemplate ItemsSource="{Binding Childrens}">
                    <StackPanel>
                        <TextBlock Text="{Binding FunctionName}"/>
                    </StackPanel>
                </common:HierarchicalDataTemplate>
            </controls:TreeView.ItemTemplate>
        </controls:TreeView>

    </Grid>
</navigation:Page>
